package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProxyRecordMapper;
import com.ruoyi.system.domain.ProxyRecord;
import com.ruoyi.system.service.IProxyRecordService;

/**
 * 代理发放记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-18
 */
@Service
public class ProxyRecordServiceImpl implements IProxyRecordService 
{
    @Autowired
    private ProxyRecordMapper proxyRecordMapper;

    /**
     * 查询代理发放记录
     * 
     * @param id 代理发放记录主键
     * @return 代理发放记录
     */
    @Override
    public ProxyRecord selectProxyRecordById(Long id)
    {
        return proxyRecordMapper.selectProxyRecordById(id);
    }

    /**
     * 查询代理发放记录列表
     * 
     * @param proxyRecord 代理发放记录
     * @return 代理发放记录
     */
    @Override
    public List<ProxyRecord> selectProxyRecordList(ProxyRecord proxyRecord)
    {
        return proxyRecordMapper.selectProxyRecordList(proxyRecord);
    }

    /**
     * 新增代理发放记录
     * 
     * @param proxyRecord 代理发放记录
     * @return 结果
     */
    @Override
    public int insertProxyRecord(ProxyRecord proxyRecord)
    {
        return proxyRecordMapper.insertProxyRecord(proxyRecord);
    }

    /**
     * 修改代理发放记录
     * 
     * @param proxyRecord 代理发放记录
     * @return 结果
     */
    @Override
    public int updateProxyRecord(ProxyRecord proxyRecord)
    {
        return proxyRecordMapper.updateProxyRecord(proxyRecord);
    }

    /**
     * 批量删除代理发放记录
     * 
     * @param ids 需要删除的代理发放记录主键
     * @return 结果
     */
    @Override
    public int deleteProxyRecordByIds(Long[] ids)
    {
        return proxyRecordMapper.deleteProxyRecordByIds(ids);
    }

    /**
     * 删除代理发放记录信息
     * 
     * @param id 代理发放记录主键
     * @return 结果
     */
    @Override
    public int deleteProxyRecordById(Long id)
    {
        return proxyRecordMapper.deleteProxyRecordById(id);
    }
}
